*** Settings ***
Documentation    Suite description
Library  RequestsLibrary
Library  Collections

*** Test Cases ***
test get

    ${header} Create Dictionary Content-Type=application/json
    ${payload}= Create Dictionary eid=1
    Create Session event http://127.0.0.1:8000/api ${header}
    ${r}= Post Request event /add_event/ data=${payload}
    Should Be Equal As Strings ${r.status_code} 200
    log ${r.json()}
    ${dict} Set variable ${r.json()}
    ${msg} Get From Dictionary ${dict} message
    Should Be Equal ${msg} parameter error
    ${sta} Get From Dictionary ${dict} status
    ${status} Evaluate int(10021)
    Should Be Equal ${sta} ${status}